# ---------- ---------- ---------- ---------- ---------- ----------
#This makefile generates the hundreds2 android project
# ---------- ---------- ---------- ---------- ---------- ----------

ThisSays=@echo hundreds says:
ProjectName=hundreds
OutputPath=output/hundreds

target: prerequisites 
prerequisites: prompt


# ---------- ---------- ---------- ---------- ---------- ----------
#NOTE: The recipes follow:
# ---------- ---------- ---------- ---------- ---------- ----------

.PHONY: prompt
prompt:
	$(ThisSays)
	@echo "  Run \"make it\" to make the apk from the source in one command."
	@echo "  Run \"make build\" to setup the android project."
	@echo "  Run \"make wire\" to wire up the next project in the android project."
	@echo "  Run \"make compile\" to compile the apk file, defaults to debug mode."
	@echo "  Run \"make deps\" to check dependencies."
	@echo "  Run \"make clean\" to remove the build output files."
	@echo "  View the makefile for more info."

.PHONY: it
it: build wire compile

.PHONY: build
build:
	./make/build-android-project.sh $(ProjectName) $(OutputPath)

.PHONY: wire
wire:
	./make/wire-it-up.sh

.PHONY: compile
compile:
	./make/compile-android-project.sh $(OutputPath)

.PHONY: clean
clean:
	rm -r ./output

.PHONY: deps
deps:
	./make/print-dependencies.sh

